package Schema;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author Lars Malmqvist
 */

/*
* This bean will be used by visaSchema.xhtml
* It has two static variables for storing the date of a shift, and the type of a shift.
* This is to remember which shift was clicked on, when user either sends a change request,
* or accepts/declines a change request.
* Class includes standard setters- and getters.
*/
@ManagedBean(name="datum")
@RequestScoped
public class Datum {
    
    private static String date;
    private static String type;
    
    public Datum(){
    }
    
    public static void setDate(String schemaDate) {
        date = schemaDate;
    }
    
    public String getDate() {
        return date;
    }
    
    public static void setType(String schemaType) {
        type = schemaType;
    }
    
    public String getType() {
        return type;
    }
    
}
